package com.sxmmall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxmmall.common.utils.PageUtils;
import com.sxmmall.ware.entity.PurchaseEntity;
import com.sxmmall.ware.entity.vo.MergeVo;
import com.sxmmall.ware.entity.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author sxm
 * @email 1125400943@qq.com
 * @date 2021-07-07 14:44:49
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /*
     * @Author sxm
     * @Description 未领取的采购订单
     * @Date 23:59 2021/9/22
     * @Param [params]
     * @return [java.util.Map<java.lang.String,java.lang.Object>]
     **/
    PageUtils queryPageUnReceivePurchase(Map<String, Object> params);

    /*
     * @Author sxm
     * @Description 合并采购需求
     * @Date 0:08 2021/9/23
     * @Param [mergeVo]
     * @return [com.sxmmall.ware.entity.vo.MergeVo]
     **/
    void mergePurchase(MergeVo mergeVo);

    /*
     * @Author sxm
     * @Description 领取采购单
     * @Date 11:14 2021/9/23
     * @Param [ids]
     * @return [com.sxmmall.ware.entity.vo.MergeVo]
     **/
    void receivedPurchase(List<Long> ids);

    /*
     * @Author sxm
     * @Description 完成采购订单
     * @Date 12:18 2021/9/23
     * @Param [purchaseDoneVo]
     * @return [com.sxmmall.ware.entity.vo.PurchaseDoneVo]
     **/
    void done(PurchaseDoneVo purchaseDoneVo);
}

